/**
 * 货主的相关接口
 */
import request from '@/common/js/api.js'
import DonMessage from '@/common/js/formMessage' // 引入消息拦截

const myMessage = new DonMessage()





// 考核模版(创建)
export const reqCreate = data => {
  return request.request({
    url: '/ly-jx-servicer/assess/template/create',
    method: 'post',
    data
  })
}


// 考核模版(删除)
export const reqDelete = data => {
  return request.request({
    url: '/ly-jx-servicer/assess/template/delete?code='+data,
    method: 'post',
  })
}


// 考核模版(分页)
export const reqPage = data => {
  return request.request({
    url: '/ly-jx-servicer/assess/template/page',
    method: 'post',
    data
  })
}


// 考核模版(详情)
export const reqDetail = data => {
  return request.request({
    url: '/ly-jx-servicer/assess/template/detail?code='+data,
    method: 'post',
  })
}

